"""""""""""""""""""""""""""""""
" Parts are copied from demure "
" https://github.com/demure    "
""""""""""""""""""""""""""""""""

""""""""""""""""""
" visual awesome "
""""""""""""""""""
set title
set undolevels=1000
set nobackup
set number
set nocompatible
set background=dark
set ruler
set encoding=utf-8
set tabstop=3
set shiftwidth=3
syntax on

""""""""
" tabs "
""""""""
set showtabline=2

"""""""""""
" General "
"""""""""""
set history=700

" enable filetype plugins
filetype plugin on
filetype indent on

""""""""""""""""""
" user interface "
""""""""""""""""""

" ignore case when searching
set ignorecase
set smartcase

" highlight search results
set hlsearch

" for regular expressions turn on magic
set magic

" show matching brackets
set showmatch

" use mouse to move
set mouse=a

" no annoying sounds on errors
set novisualbell
set noerrorbells
set t_vb=
set tm=500
set confirm

" ctags funness
set tags+=tags;

" Enable taglist
filetype plugin on

" fold fun
set foldmethod=syntax
set nofoldenable
set foldlevel=1
map <F9> zA

"""""""""""""""""
" moving around "
"""""""""""""""""

" <space> to search, Ctrl-<space> to backwards search
map <space> /
map <c-space> ?

" spell check, pressing ,ss will toggle and untoggle spell checking
map <leader>ss :setlocal spell!<cr>

" traverse vims list
noremap <silent> bp :bprevious<CR>
noremap <silent> bn :bnext<CR>
noremap <silent> bf :bfirst<CR>
noremap <silent> bl :blast<CR>

" manage runtimepath better
call pathogen#infect()
set nocp
filetype plugin on
syntax on

" color scheme
colorscheme Tomorrow-Night

""""""""""""""""""""
" CoVim login info "
""""""""""""""""""""

let CoVim_default_name = "daemoneye"

"""""""""""""
" iab magic "
"""""""""""""

" Source .iab, which include all my iabs
so ~/.iab
